using System.ComponentModel;

namespace PropertyExpression.TypedDataBinding.Wpf
{
    public class Person : INotifyPropertyChanged
    {
        private string firstName = "Donald";
        public string FirstName
        {
            get { return firstName; }
            set
            {
                firstName = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("FirstName"));
            }
        }

        private string lastName = "Dark";
        public string LastName
        {
            get { return lastName; }
            set
            {
                lastName = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("LastName"));
            }
        }

        private int count = 10;
        public int Count
        {
            get { return count; }
            set
            {
                count = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Count"));
            }
        }


        public event PropertyChangedEventHandler PropertyChanged;
    }
}